﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000777 RID: 1911
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetNpcMessageGroupScRsp : IMessage<GetNpcMessageGroupScRsp>, IMessage, IEquatable<GetNpcMessageGroupScRsp>, IDeepCloneable<GetNpcMessageGroupScRsp>, IBufferMessage
	{
		// Token: 0x17001873 RID: 6259
		// (get) Token: 0x060055F1 RID: 22001 RVA: 0x000E8B59 File Offset: 0x000E6D59
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetNpcMessageGroupScRsp> Parser
		{
			get
			{
				return GetNpcMessageGroupScRsp._parser;
			}
		}

		// Token: 0x17001874 RID: 6260
		// (get) Token: 0x060055F2 RID: 22002 RVA: 0x000E8B60 File Offset: 0x000E6D60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetNpcMessageGroupScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001875 RID: 6261
		// (get) Token: 0x060055F3 RID: 22003 RVA: 0x000E8B72 File Offset: 0x000E6D72
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetNpcMessageGroupScRsp.Descriptor;
			}
		}

		// Token: 0x060055F4 RID: 22004 RVA: 0x000E8B79 File Offset: 0x000E6D79
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetNpcMessageGroupScRsp()
		{
		}

		// Token: 0x060055F5 RID: 22005 RVA: 0x000E8B8C File Offset: 0x000E6D8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetNpcMessageGroupScRsp(GetNpcMessageGroupScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.messageGroupList_ = other.messageGroupList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060055F6 RID: 22006 RVA: 0x000E8BC2 File Offset: 0x000E6DC2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetNpcMessageGroupScRsp Clone()
		{
			return new GetNpcMessageGroupScRsp(this);
		}

		// Token: 0x17001876 RID: 6262
		// (get) Token: 0x060055F7 RID: 22007 RVA: 0x000E8BCA File Offset: 0x000E6DCA
		// (set) Token: 0x060055F8 RID: 22008 RVA: 0x000E8BD2 File Offset: 0x000E6DD2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001877 RID: 6263
		// (get) Token: 0x060055F9 RID: 22009 RVA: 0x000E8BDB File Offset: 0x000E6DDB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<MessageGroup> MessageGroupList
		{
			get
			{
				return this.messageGroupList_;
			}
		}

		// Token: 0x060055FA RID: 22010 RVA: 0x000E8BE3 File Offset: 0x000E6DE3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetNpcMessageGroupScRsp);
		}

		// Token: 0x060055FB RID: 22011 RVA: 0x000E8BF4 File Offset: 0x000E6DF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetNpcMessageGroupScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.messageGroupList_.Equals(other.messageGroupList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060055FC RID: 22012 RVA: 0x000E8C44 File Offset: 0x000E6E44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.messageGroupList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060055FD RID: 22013 RVA: 0x000E8C91 File Offset: 0x000E6E91
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060055FE RID: 22014 RVA: 0x000E8C99 File Offset: 0x000E6E99
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060055FF RID: 22015 RVA: 0x000E8CA4 File Offset: 0x000E6EA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.messageGroupList_.WriteTo(ref output, GetNpcMessageGroupScRsp._repeated_messageGroupList_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005600 RID: 22016 RVA: 0x000E8CF4 File Offset: 0x000E6EF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.messageGroupList_.CalculateSize(GetNpcMessageGroupScRsp._repeated_messageGroupList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005601 RID: 22017 RVA: 0x000E8D48 File Offset: 0x000E6F48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetNpcMessageGroupScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.messageGroupList_.Add(other.messageGroupList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005602 RID: 22018 RVA: 0x000E8D95 File Offset: 0x000E6F95
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005603 RID: 22019 RVA: 0x000E8DA0 File Offset: 0x000E6FA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 26U)
				{
					if (num != 64U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.messageGroupList_.AddEntriesFrom(ref input, GetNpcMessageGroupScRsp._repeated_messageGroupList_codec);
				}
			}
		}

		// Token: 0x040021A5 RID: 8613
		private static readonly MessageParser<GetNpcMessageGroupScRsp> _parser = new MessageParser<GetNpcMessageGroupScRsp>(() => new GetNpcMessageGroupScRsp());

		// Token: 0x040021A6 RID: 8614
		private UnknownFieldSet _unknownFields;

		// Token: 0x040021A7 RID: 8615
		public const int RetcodeFieldNumber = 8;

		// Token: 0x040021A8 RID: 8616
		private uint retcode_;

		// Token: 0x040021A9 RID: 8617
		public const int MessageGroupListFieldNumber = 3;

		// Token: 0x040021AA RID: 8618
		private static readonly FieldCodec<MessageGroup> _repeated_messageGroupList_codec = FieldCodec.ForMessage<MessageGroup>(26U, MessageGroup.Parser);

		// Token: 0x040021AB RID: 8619
		private readonly RepeatedField<MessageGroup> messageGroupList_ = new RepeatedField<MessageGroup>();
	}
}
